#include<stdio.h>
int main(void){
	int n,i,t;
	printf("plz enter total quantity\n");
	scanf("%d",&n);
	int alist[n];
	for(i=0;i<=n-1;i++){
		printf("plz enter number:\n");
		scanf("%d",&alist[i]);
	}
	for(i=0;i<=n-1;i++)
		for(int j=i;j<=n-1;j++){
			if(alist[i]<=alist[j]){
				t=alist[i];
				alist[i]=alist[j];
				alist[j]=t;
			}
		}
	for(i=0;i<=n-1;i++)
		printf("%4d",alist[i]);
	return 0;
} 
